
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Controls;

public class InputManager : MonoBehaviour
{
    public InputAction inputDirectionAction;

    public InputAction inputMouseLeftPressAction;
    public InputAction inputMouseLeftReleaseAction;

    public InputAction inputMouseRightPressAction;

    public InputAction qPressAction;
    public InputAction wPressAction;
    public InputAction ePressAction;

    public InputAction inputGetPositionPressAction;
    private void Awake()
    {

        //Debug.Log("inputReleaseAction is " + playerInput.actions.FindAction("inputRight").ToString());
        //Debug.Log(inputReleaseAction.IsUnityNull());

        //inputReleaseAction = playerInput.actions.FindAction("inputRight");
        //inputLeftAction = playerInput.actions.FindAction("inputDelta");
    }
    private void OnEnable()
    {


        inputMouseLeftPressAction.Enable();
        inputMouseRightPressAction.Enable();
        inputMouseLeftReleaseAction.Enable();
        inputGetPositionPressAction.Enable();
        inputDirectionAction.Enable();
        wPressAction.Enable();
        qPressAction.Enable();
        ePressAction.Enable();

    }
    private void OnDisable()
    {
        inputMouseLeftPressAction.Disable();
        inputMouseRightPressAction.Disable();
        inputMouseLeftReleaseAction.Disable();
        inputGetPositionPressAction.Disable();
        inputDirectionAction.Disable();
        wPressAction.Disable() ;
        qPressAction.Disable();
        ePressAction.Disable();
    }
    private void Update()
    {
    }
}
